<%@page import="org.teacup.eightdays.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ include file="/base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><%=OrderItem.TABLE_ALIAS%> 维护</title>
<link rel="stylesheet" href="<c:url value="/resources/css/reset.css"/>" type="text/css"
	media="screen" />
<link rel="stylesheet" href="<c:url value="/resources/css/style.css"/>" type="text/css"
	media="screen" />
<link rel="stylesheet" href="<c:url value="/resources/css/invalid.css"/>" type="text/css" media="screen" />
<script type="text/javascript" src="<c:url value="/resources/scripts/jquery-1.3.2.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/resources/scripts/simpla.jquery.configuration.js"/>"></script>
<script type="text/javascript" src="<c:url value="/resources/scripts/facebox.js"/>"></script>
<script type="text/javascript" src="<c:url value="/resources/scripts/jquery.wysiwyg.js"/>"></script>
<script type="text/javascript" src="<c:url value="/resources/scripts/jquery.datePicker.js"/>"></script>
<script type="text/javascript" src="<c:url value="/resources/scripts/jquery.date.js"/>"></script>
<script type="text/javascript" src="<c:url value="/widgets/simpletable/simpletable.js"/>"></script>
<script type="text/javascript" >
$(document).ready(function() {
	// 分页需要依赖的初始化动作
	window.simpleTable = new SimpleTable('queryForm',${page.thisPageNumber},${page.pageSize},'${pageRequest.sortColumns}');
	setTimeout(function(){$("#searchbox").click();},500);
});
</script>
</head>
<body style="background:none;">
	<form id="queryForm" name="queryForm" action="<c:url value="/OrderItem/list.shtml"/>" method="get" style="display: inline;">
	<div class="content-box">
		<!-- Start Content Box -->
		<div class="content-box-header">
			<h3 id = "searchbox">搜索</h3>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_ORDER_ID%></label>
					<input class="text-input large-input" value="${query.orderId}" id="orderId" name="orderId" maxlength="19"  class="validate-integer "/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_PRODUCT_ID%></label>
					<input class="text-input large-input" value="${query.productId}" id="productId" name="productId" maxlength="19"  class="validate-integer "/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_NAME%></label>
					<input class="text-input large-input" value="${query.name}" id="name" name="name" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_CODE%></label>
					<input class="text-input large-input" value="${query.code}" id="code" name="code" maxlength="100"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_PRODUCT_TYPE%></label>
					<input class="text-input large-input" value="${query.productType}" id="productType" name="productType" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_PRODUCT_DESCRIBE%></label>
					<input class="text-input large-input" value="${query.productDescribe}" id="productDescribe" name="productDescribe" maxlength="500"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_PRODUCING_AREA%></label>
					<input class="text-input large-input" value="${query.producingArea}" id="producingArea" name="producingArea" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_PRODUCTION_CERTIFICATE%></label>
					<input class="text-input large-input" value="${query.productionCertificate}" id="productionCertificate" name="productionCertificate" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_PRODUCT_STANDARD_CODE%></label>
					<input class="text-input large-input" value="${query.productStandardCode}" id="productStandardCode" name="productStandardCode" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_WORKS_INITIALS%></label>
					<input class="text-input large-input" value="${query.worksInitials}" id="worksInitials" name="worksInitials" maxlength="500"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_WORKS_ADDRESS%></label>
					<input class="text-input large-input" value="${query.worksAddress}" id="worksAddress" name="worksAddress" maxlength="500"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_BURDEN_SHEET%></label>
					<input class="text-input large-input" value="${query.burdenSheet}" id="burdenSheet" name="burdenSheet" maxlength="1000"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_STORE%></label>
					<input class="text-input large-input" value="${query.store}" id="store" name="store" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_QUALITY_GUARANTEE_PERIOD%></label>
					<input class="text-input large-input" value="${query.qualityGuaranteePeriod}" id="qualityGuaranteePeriod" name="qualityGuaranteePeriod" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_ADDITIVE%></label>
					<input class="text-input large-input" value="${query.additive}" id="additive" name="additive" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_PACKAGING%></label>
					<input class="text-input large-input" value="${query.packaging}" id="packaging" name="packaging" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_BRAND%></label>
					<input class="text-input large-input" value="${query.brand}" id="brand" name="brand" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_CATENA%></label>
					<input class="text-input large-input" value="${query.catena}" id="catena" name="catena" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_STANDARD%></label>
					<input class="text-input large-input" value="${query.standard}" id="standard" name="standard" maxlength="100"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_BAR_CODE%></label>
					<input class="text-input large-input" value="${query.barCode}" id="barCode" name="barCode" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_WEIGHT%></label>
					<input class="text-input large-input" value="${query.weight}" id="weight" name="weight" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_TYPE%></label>
					<input class="text-input large-input" value="${query.type}" id="type" name="type" maxlength="255"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_COST%></label>
					<input class="text-input large-input" value="${query.cost}" id="cost" name="cost" maxlength="12"  class="validate-number "/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_PRICE%></label>
					<input class="text-input large-input" value="${query.price}" id="price" name="price" maxlength="12"  class="validate-number "/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_NUMBER%></label>
					<input class="text-input large-input" value="${query.number}" id="number" name="number" maxlength="10"  class="validate-integer max-value-2147483647"/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_AMOUNT%></label>
					<input class="text-input large-input" value="${query.amount}" id="amount" name="amount" maxlength="12"  class="validate-number "/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<p class="queryparam">
					<label><%=OrderItem.ALIAS_TASTE%></label>
					<input class="text-input large-input" value="${query.taste}" id="taste" name="taste" maxlength="100"  class=""/>
					<br />
					<small>A small description of the field</small> 
				</p>
				<div class="clear"></div>
			</div>
		</div>
	</div>
	<p>
		<a class="button" href="javascript:;" onclick="document.forms[0].submit();">查询</a>
		<a class="button" href="${ctx}/OrderItem/create.shtml">新增</a>
		<a class="button" href="javascript:batchDelete('${ctx}/OrderItem/delete.shtml','items',document.forms.queryForm)">删除</a>
	</p>
	<div class="content-box">
		<!-- Start Content Box -->
		<div class="content-box-header">
			<h3><%=OrderItem.TABLE_ALIAS%>信息</h3>
			<div class="clear"></div>
		</div>
		<!-- End .content-box-header -->
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<!-- This is the target div. id must match the href of this div's tab -->
				<%@ include file="/commons/messages.jsp" %>
				<table>
					<thead>
						<tr>
							<th><input class="check-all" type="checkbox" /></th>
							<th sortColumn="order_id" ><%=OrderItem.ALIAS_ORDER_ID%></th>
							<th sortColumn="product_id" ><%=OrderItem.ALIAS_PRODUCT_ID%></th>
							<th sortColumn="name" ><%=OrderItem.ALIAS_NAME%></th>
							<th sortColumn="code" ><%=OrderItem.ALIAS_CODE%></th>
							<th sortColumn="product_type" ><%=OrderItem.ALIAS_PRODUCT_TYPE%></th>
							<th sortColumn="product_describe" ><%=OrderItem.ALIAS_PRODUCT_DESCRIBE%></th>
							<th sortColumn="producing_area" ><%=OrderItem.ALIAS_PRODUCING_AREA%></th>
							<th sortColumn="production_certificate" ><%=OrderItem.ALIAS_PRODUCTION_CERTIFICATE%></th>
							<th sortColumn="product_standard_code" ><%=OrderItem.ALIAS_PRODUCT_STANDARD_CODE%></th>
							<th sortColumn="works_initials" ><%=OrderItem.ALIAS_WORKS_INITIALS%></th>
							<th sortColumn="works_address" ><%=OrderItem.ALIAS_WORKS_ADDRESS%></th>
							<th sortColumn="burden_sheet" ><%=OrderItem.ALIAS_BURDEN_SHEET%></th>
							<th sortColumn="store" ><%=OrderItem.ALIAS_STORE%></th>
							<th sortColumn="quality_guarantee_period" ><%=OrderItem.ALIAS_QUALITY_GUARANTEE_PERIOD%></th>
							<th sortColumn="additive" ><%=OrderItem.ALIAS_ADDITIVE%></th>
							<th sortColumn="packaging" ><%=OrderItem.ALIAS_PACKAGING%></th>
							<th sortColumn="brand" ><%=OrderItem.ALIAS_BRAND%></th>
							<th sortColumn="catena" ><%=OrderItem.ALIAS_CATENA%></th>
							<th sortColumn="standard" ><%=OrderItem.ALIAS_STANDARD%></th>
							<th sortColumn="bar_code" ><%=OrderItem.ALIAS_BAR_CODE%></th>
							<th sortColumn="weight" ><%=OrderItem.ALIAS_WEIGHT%></th>
							<th sortColumn="type" ><%=OrderItem.ALIAS_TYPE%></th>
							<th sortColumn="cost" ><%=OrderItem.ALIAS_COST%></th>
							<th sortColumn="price" ><%=OrderItem.ALIAS_PRICE%></th>
							<th sortColumn="number" ><%=OrderItem.ALIAS_NUMBER%></th>
							<th sortColumn="amount" ><%=OrderItem.ALIAS_AMOUNT%></th>
							<th sortColumn="taste" ><%=OrderItem.ALIAS_TASTE%></th>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<td colspan="6">
								<div class="pagination">
									<simpletable:pageToolbar page="${page}">
									</simpletable:pageToolbar>
								</div>
								<!-- <div class="pagination">
									<a href="#" class="number"
										title="2">2</a> <a href="#" class="number current" title="3">3</a>
									<a href="#" class="number" title="4">4</a> 
									<a href="#"
										title="Last Page">Last &raquo;</a>
								</div> --> 
								<div class="clear"></div>
							</td>
						</tr>
					</tfoot>
					<tbody>
					<c:forEach items="${page.result}" var="item" varStatus="status">
					<tr>
						<td><input type="checkbox" name="items" value="orderItemId=${item.orderItemId}&" /></td>
						<td><c:out value='${item.orderId}'/>&nbsp;</td>
						<td><c:out value='${item.productId}'/>&nbsp;</td>
						<td><c:out value='${item.name}'/>&nbsp;</td>
						<td><c:out value='${item.code}'/>&nbsp;</td>
						<td><c:out value='${item.productType}'/>&nbsp;</td>
						<td><c:out value='${item.productDescribe}'/>&nbsp;</td>
						<td><c:out value='${item.producingArea}'/>&nbsp;</td>
						<td><c:out value='${item.productionCertificate}'/>&nbsp;</td>
						<td><c:out value='${item.productStandardCode}'/>&nbsp;</td>
						<td><c:out value='${item.worksInitials}'/>&nbsp;</td>
						<td><c:out value='${item.worksAddress}'/>&nbsp;</td>
						<td><c:out value='${item.burdenSheet}'/>&nbsp;</td>
						<td><c:out value='${item.store}'/>&nbsp;</td>
						<td><c:out value='${item.qualityGuaranteePeriod}'/>&nbsp;</td>
						<td><c:out value='${item.additive}'/>&nbsp;</td>
						<td><c:out value='${item.packaging}'/>&nbsp;</td>
						<td><c:out value='${item.brand}'/>&nbsp;</td>
						<td><c:out value='${item.catena}'/>&nbsp;</td>
						<td><c:out value='${item.standard}'/>&nbsp;</td>
						<td><c:out value='${item.barCode}'/>&nbsp;</td>
						<td><c:out value='${item.weight}'/>&nbsp;</td>
						<td><c:out value='${item.type}'/>&nbsp;</td>
						<td><c:out value='${item.cost}'/>&nbsp;</td>
						<td><c:out value='${item.price}'/>&nbsp;</td>
						<td><c:out value='${item.number}'/>&nbsp;</td>
						<td><c:out value='${item.amount}'/>&nbsp;</td>
						<td><c:out value='${item.taste}'/>&nbsp;</td>
						<td>
						<a href="${ctx}/OrderItem/show.shtml?orderItemId=${item.orderItemId}&" title="查看"><img src="resources/images/icons/hammer_screwdriver.png" alt="查看" /></a>&nbsp;
							<a href="${ctx}/OrderItem/edit.shtml?orderItemId=${item.orderItemId}&" title="修改"><img src="resources/images/icons/pencil.png" alt="修改" /></a>&nbsp; 
							<a href="javascript:deleterow('${ctx}/OrderItem/delete.shtml','${item.orderItemId}',document.forms.queryForm)" title="删除"><img src="resources/images/icons/cross.png" alt="删除" /></a>
						</td>
					  </tr>
				  	  </c:forEach>
					</tbody>
				</table>
				<input type="hidden" name="itemid"/>
			</div>
		</div>
		<!-- End .content-box-content -->
	</div>
	</form>
</body>
</html>
</html>
